package com.student.demo.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.student.demo.entity.Course;

public interface CourseRepository extends JpaRepository<Course, Integer> {

	Course findBydId(Integer id);
//	    List<Team> findByNameLike(String name);
//	@Query(value = "select * from course  where d_name like '%?1%'")
	List<Course> findByDName(String key);

}
